Next()

Resource-Specific System Function

Syntax samples

NEXT()

Var1=NEXT()

IF NEXT() = PathNet5.N11 THEN Var5=3

Description

Returns the name-index number of the resource’s destination node. Use NEXT() to determine the direction an entity is headed and choose the appropriate graphic. This function can be used to control interference between multiple transporters on the same path network. You can also check the name-index number of the next node by specifying <path network name>. <name of the node>. For example, if you wanted to know if the next node is N5 on the network Net3, you could specify "IF NEXT() = Net3.N5 THEN..." in the node exit logic.

Valid In

Node exit logic. This function returns a name-index number.

Example

This Exit Logic window shows that whenever the resource leaves a node a check is made to see if the name-index number of the next node equals 1. If so, the resource graphic is changed to Graphic 3. (Otherwise it is changed to Graphic 2.)

 

 

See Also

LAST() and WAIT...UNTIL.